{% extends "_layout.html" %}
{% import "component/forms.njk" as forms %}

{# 样式代码 #}
{% block style %}
<link href="/css/plugins/iCheck/custom.css" rel="stylesheet">
{% endblock %}

{# bodyd代码#}
{% block body %}
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>添加商品套餐</h5>

                </div>
                <div class="ibox-content">
                    <form class="form-horizontal m-t from" id="form" action="/goods/combo/edit/base/info" method="post" data-href="/goods/combo">
                    	{{ forms.hidden('id', data.id) }}

                        {{ forms.text('套餐名称', 'name', data.name, '请输入名称', 'required') }}
                        {{ forms.text('英文名称', 'nameEn', data.nameEn, '请输入英文名称', 'required') }}

                        {{ forms.submit() }}

                    </form>
                </div>
            </div>
        </div>

    </div>
{% endblock %}

{#js代码#}
{% block js %}
<script>
$(function () {
    $("#form").validate({
        submitHandler: function() {
          asyncSubmitForm($("#form"));
        }
    });

});

</script>

{% endblock %}